package com.oracle.zebrafreelytraveling.data.RequestResult;

import com.oracle.zebrafreelytraveling.data.bean.Card;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yydcnjjw on 2017/7/25.
 * card接口类
 */

public class ResCard {


    /**
     * code : 0
     * message : 成功
     * data : [{"userName":"1","headImg":"1","card":{"id":7,"userId":7,"time":"7","site":1,"label":"3","receive":7,"content":"7","img":"6","grade":6}},{"userName":"2","headImg":"2","card":{"id":13,"userId":6,"time":"6","site":1,"label":"1","receive":6,"content":"6","img":"5","grade":5}},{"userName":"3","headImg":"3","card":{"id":5,"userId":5,"time":"5","site":1,"label":"1","receive":5,"content":"5","img":"4","grade":4}},{"userName":"4","headImg":"4","card":{"id":11,"userId":4,"time":"4","site":1,"label":"3","receive":4,"content":"4","img":"3","grade":3}},{"userName":"5","headImg":"5","card":{"id":3,"userId":3,"time":"3","site":1,"label":"3","receive":3,"content":"3","img":"2","grade":2}},{"userName":"6","headImg":"6","card":{"id":17,"userId":3,"time":"3","site":1,"label":"1","receive":3,"content":"3","img":"2","grade":2}},{"userName":"7","headImg":"7","card":{"id":9,"userId":2,"time":"2","site":1,"label":"1","receive":2,"content":"2","img":"1","grade":1}}]
     */

    private String code;
    private String message;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * userName : 1
         * headImg : 1
         * card : {"id":7,"userId":7,"time":"7","site":1,"label":"3","receive":7,"content":"7","img":"6","grade":6}
         */

        private String userName;
        private String headImg;
        private Card card;

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getHeadImg() {
            return headImg;
        }

        public void setHeadImg(String headImg) {
            this.headImg = headImg;
        }

        public Card getCard() {
            return card;
        }

        public void setCard(Card card) {
            this.card = card;
        }
    }
}
